package cn.hs.mapper;
import org.apache.ibatis.annotations.Param;

import cn.hs.entity.Course;
import cn.hs.pojo.CourseIdAndName;
import cn.hs.pojo.CourseSelect;

import java.util.List;

/**
* @author yun
* @description 针对表【course】的数据库操作Mapper
* @createDate 2024-10-22 20:35:01
* @Entity cn.hs.entity.Course
*/
public interface CourseMapper {

    int add(Course course);

    int delete(Integer id);

    int update(Course course);
    int updateTypeByTypeId(Integer id);


    List<Course> selectAll(CourseSelect pojo);
    Integer selectCountByTypeId(Integer id);
    Course selectById(Integer id);
    String selectNameById(Integer id);
    List<CourseIdAndName> selectIdAndName(CourseSelect pojo);

    List<Course> selectByTeacherIdCourses(@Param("teacherId") Integer teacherId);
}




